cc.Class({
    extends: cc.Component,

    properties: {
        bgMusic: {
            default: null,
            url: cc.AudioClip   
        },
    },

    // use this for initialization
    onLoad: function () {

        // 播放音乐
        cc.audioEngine.playMusic(this.bgMusic, true);
    },

    startGameBtnClick: function() {
        // cc.log("点击了开始按钮了。。。");
        cc.director.loadScene('Main');
    },

    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {

    // },
});
